package com.ruoyi.work.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 关键字信息
 *
 * @author fengcheng
 */
@Data
@AllArgsConstructor
public class KeywordInfo {

    private int page;

    private float centreX;

    private float centreY;

    /**
     * 默认构造函数
     */
    public KeywordInfo() {
        super();
    }

    /**
     * 构造函数
     *
     * @param page 页码
     */
    public KeywordInfo(int page) {
        super();
        this.page = page;
    }

    /**
     * copy
     *
     * @return KeywordInfo
     */
    public KeywordInfo copy() {
        return new KeywordInfo(this.page);
    }


    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public float getCentreX() {
        return centreX;
    }

    public void setCentreX(float centreX) {
        this.centreX = centreX;
    }

    public float getCentreY() {
        return centreY;
    }

    public void setCentreY(float centreY) {
        this.centreY = centreY;
    }

    @Override
    public String toString() {
        return "KeywordInfo{" +
                "page=" + page +
                ", centreX=" + centreX +
                ", centreY=" + centreY +
                '}';
    }
}
